package com.quarkus.resource;

import io.quarkus.runtime.ShutdownEvent;
import io.quarkus.runtime.StartupEvent;

import javax.enterprise.event.Observes;

/**
 * @Author: TongRui乀
 * @Date: 2021/3/21 9:27
 * @description：
 */
public class LifeStyleBean {

    public void init(@Observes StartupEvent startupEvent){

        System.out.println("start -------------------");

    }

    public void shutDown(@Observes ShutdownEvent shutdownEvent){

        System.out.println("shutDown ------------------");
    }

}
